package top.easyblog.core.dao.auto.model;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

import lombok.Data;
import org.apache.commons.lang3.StringUtils;

@Data
public class CompressionCode implements Serializable {
    private Long id;

    private String compressionCode;

    private Byte status;

    private String sequenceValue;

    private String strategy;

    private Boolean deleted;

    private Date createTime;

    private Date updateTime;


    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        CompressionCode that = (CompressionCode) o;
        return StringUtils.equals(compressionCode, that.compressionCode);
    }

    @Override
    public int hashCode() {
        return Objects.hash(compressionCode);
    }
}